/*
 * Copyright (c) 2003-2004, Inversoft, All Rights Reserved
 */
package org.emergent.antbite.savant.log;


/**
 * <p>
 * This class is the main log class that is used by the Savant
 * build system and that calls to the {@link LogManager} so
 * that log messages can be broadcast to listeners.
 * </p>
 *
 * @author Brian Pontarelli
 */
public final class Log {

    /**
     * The verbose log level.
     */
    public static final String VERBOSE = "verbose";

    /**
     * The debug log level.
     */
    public static final String DEBUG = "debug";

    /**
     * The info log level.
     */
    public static final String INFO = "info";

    /**
     * The warn log level.
     */
    public static final String WARN = "warn";

    /**
     * The error log level.
     */
    public static final String ERROR = "error";

    /**
     * The fatal log level.
     */
    public static final String FATAL = "fatal";
    

    /**
     * Logs the given message are the given level.
     *
     * @param   msg The message.
     * @param   level The level.
     */
    public static void log(String msg, String level) {
        LogManager.getInstance().sendMessage(msg, level);
    }
}
